package org.seedltd.upms.mapper.sys;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.seedltd.core.base.IBaseMapper;
import org.seedltd.upms.model.sys.entity.SysRole;

/**
 * 角色管理数据库访问接口
 */
public interface SysRoleMapper extends IBaseMapper<SysRole> {


    @Select("select 1 from sys_role where role_code = #{code} limit 1")
    Integer checkCodeExists(@Param("code") String roleCode);
}
